//
// Created by 86138 on 2025/5/3.
//

#ifndef QINGDAO_UNIVERSITY_SQLIST_H
#define QINGDAO_UNIVERSITY_SQLIST_H
#include "../01-intro/c1-1.h"
#define LIST_INIT_SIZE 100
#define LIST_INCREMENT 10

typedef int ElemType;
typedef struct {
    ElemType *Elem;
    int Length;
    int List_Size;
} SqList;

void InitList(SqList &L);

Status ListInsert(SqList &L, int i, ElemType e);

Status ListDelete(SqList &L, int i, ElemType &e);

Status GetElem(SqList &L, int i, ElemType &e);

void DestroyList(SqList &L);
#endif //QINGDAO_UNIVERSITY_SQLIST_H
